# 数据库配置
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'spider_cms',
        'USER': 'root',
        'PASSWORD': 'wulinlin',
        'HOST': '127.0.0.1',
        'PORT':3306,
        "OPTIONS":{'charset':"utf8mb4"},
    }
}

# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.mysql',
#         'NAME': 'spider_cms',
#         'USER': 'root',
#         'PASSWORD': 'Wll_2019',
#         'HOST': '123.57.78.203',
#         'PORT':3306,
#         "OPTIONS":{'charset':"utf8mb4"},
#     }
# }

CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://123.57.78.203:6379/11",
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {"max_connections": 100}
            # "PASSWORD": "密码",
        }
    }
}
# CACHES = {
#     "default": {
#         "BACKEND": "django_redis.cache.RedisCache",
#         "LOCATION": "redis://127.0.0.1:6379/3",
#         "OPTIONS": {
#             "CLIENT_CLASS": "django_redis.client.DefaultClient",
#             "CONNECTION_POOL_KWARGS": {"max_connections": 100}
#             # "PASSWORD": "密码",
#         }
#     }
# }

access_key_id = 'LTAI4FjEyJMxz6WC6L3AbsUW'
access_key_secret = '1JJdHkbwTIkYgwqF0pJuoMigi5cGUH'
bucket_name = '51huoke'
endpoint = 'oss-cn-shenzhen.aliyuncs.com'
username = 'kykwll@1042328445673108.onaliyun.com'
